<template>
	<view class="currentPage">
		<!-- <u-navbar title="动态" :is-back="false" :background="{backgroundImage: 'linear-gradient(45deg, #41d8dd, #5583ee)'}"title-color="#ffffff"></u-navbar> -->
		
		<navbar title='动态'></navbar>
		<view class="content">
			<view class="item" v-for="(item,index) in opList" :key='index' @tap='op(item,index)'>
				<view class="wrapper">
					{{item}}
					<view class="right-arrow"></view>
				</view>
			</view>
		</view>
		<!-- <tabbar selected='2'></tabbar> -->
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				opList: ['好友动态']
			}
		},
		onLoad() {

		},
		methods: {
			op(item,index){
				if(index == 0){
					uni.navigateTo({
						url:'/pages/dynamic/dynamic',
						fail: (err) => {
							console.log(err)
						}
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.currentPage{
		background: rgb(245,246,250);
	}
		
	.wrapper{
		width: 92%;
		margin: 0 auto;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.content {
		// width: 92%;
		height: calc(100vh - 250rpx);
		// margin: 0 auto;
		// border: 1px solid;

		.item {
			margin: 15rpx 0;
			padding: 20rpx 0;
			font-size: 30rpx;
			background-color: #FFFFFF;
			// border: 1px solid;
			.right-arrow{
				width: 20rpx;
				height: 20rpx;
				border-top: 2px solid ;
				border-right: 2px solid ;
				transform: rotateZ(45deg);
			}
		}
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 100rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 28rpx;
		color: $u-content-color;
	}

	.link-demo {
		margin-top: 80rpx;
	}
</style>
